﻿using System;
using System.Collections.Generic;
using System.Linq;
using Cotrobaie.UsersWebService;

namespace Cotrobaie.UserControl
{
    public partial class RezultateProduseVizualizariMulte : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            using (UsersSoapClient serviciu = new UsersSoapClient("UsersSoap"))
            {
                var result = serviciu.GetTopAccessed(4);
                if (result.Success)
                    PlaceHolder1.InnerHtml = Cotrobaie.Clase.TabelSearchuri.tabelProducts(result.Produse.ToList());
                else Literal1.Text = result.Mesaj;
            }
        }
        
    }
}